<template>
  <div id="partner">  
    <div  style="display:flex;align-items: center;margin-bottom:10px;">
          <img class="top_img" src="@/assets/images/a8.png" style="width:35px;height:35px;margin-right:10px;"/>
          <div style="line-height: 40px;font-weight:bold:">合伙人申请</div>
    </div> 

   <!-- 渲染数据list -->
   <partner-list :datalist="datalist" @up_list_fun="list_fun"> </partner-list>

      
   <div style="margin-top:20px;text-align: center;">
      <el-pagination
        background
        @current-change="handleCurrentChange"
        :page-size="10"  
        layout="prev, pager, next, jumper"
        :total="count">
      </el-pagination>
    </div>


    

    

      
  </div>
</template>

<script>
import PartnerList from '@/view/Member/PartnerList'
export default {
  name: 'partner',
  data () {
    return {
        datalist:[],
        page:1,
        count:0,
    }
  },
 components:{
    PartnerList
  },
  created(){
     this.list_fun()
  },
  mounted (){
    
  },
  methods: {
      list_fun(){
          this.post("/partner_apply/listOfData", {
              page:this.page,
	        }).then(res => {
            this.count = res.result.count
            this.datalist = res.result.list
            console.log(res)
         })
      },
     handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        this.page = val
        this.list_fun()
        console.log(`当前页: ${val}`);
      }
  }
}
</script>


<style scoped>
</style>
